// This file was automatically generated from raid_member_list.soy.
// Please don't edit this file by hand.

goog.provide('dkpoints.ui.templates.RaidMemberList');

goog.require('soy');


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.ui.templates.RaidMemberList.render = function(opt_data) {
  var output = '<h3 class="raid_members_head">Raid Members</h3><div class="raid_members">';
  var raiderList8 = opt_data.raidMembers;
  var raiderListLen8 = raiderList8.length;
  for (var raiderIndex8 = 0; raiderIndex8 < raiderListLen8; raiderIndex8++) {
    var raiderData8 = raiderList8[raiderIndex8];
    output += dkpoints.ui.templates.RaidMemberList.newRaider({playerName: raiderData8.playerName, playerClass: raiderData8.playerClass, number: raiderIndex8 + 1, editable: opt_data.editable, parentID: opt_data.parentID});
  }
  output += ((opt_data.editable) ? dkpoints.ui.templates.RaidMemberList.addRaider({parentID: opt_data.parentID}) : '') + '</div><div class="member_list_options ' + ((opt_data.editable) ? 'member_list_options_extrawide' : '') + '"><div>Click player names to inspect</div>' + ((opt_data.editable) ? '<div>Drag player names to "Looted By" fields</div>' : '') + '</div>';
  return output;
};


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.ui.templates.RaidMemberList.newRaider = function(opt_data) {
  return '<div class="raid_member"><div class="playername ' + ((opt_data.editable) ? 'editable_playername' : '') + ' ' + soy.$$escapeHtml(opt_data.playerClass) + '">' + soy.$$escapeHtml(opt_data.number) + '. <a href="/#/raider/' + soy.$$escapeHtml(opt_data.playerName) + '/" ' + ((opt_data.editable) ? 'target="_blank"' : '') + ' class="playerlink ' + soy.$$escapeHtml(opt_data.playerClass) + '">' + soy.$$escapeHtml(opt_data.playerName) + '</a></div>' + ((opt_data.editable) ? '<div class="member_option"><div id="' + opt_data.parentID + '.rmv' + opt_data.playerName + '" class="goog-inline-block goog-imageless-button"> - </div></div>' : '') + '</div>';
};


/**
 * @param {Object.<string, *>=} opt_data
 * @return {string}
 * @notypecheck
 */
dkpoints.ui.templates.RaidMemberList.addRaider = function(opt_data) {
  return '<div class="raid_member"><div class="playername editable_playername"><input id="' + opt_data.parentID + '.new_raider" class="add_player_input" name="new_raider" type="text" size="25em" /></div><div class="member_option"><div id="' + opt_data.parentID + '.addBtn" class="remove_player_button goog-inline-block goog-imageless-button"> + </button></div></div>';
};
